package net.xdclass.service.fallback;

import net.xdclass.domain.Video;
import net.xdclass.service.VideoService;
import org.springframework.stereotype.Service;

/**
 * @description: 兜底fallback
 * @author: Yz
 * @create: 2020-11-13 17:12
 **/
@Service
public class VideoServiceFallback implements VideoService {

    @Override
    public Video findById(int videoId) {
        Video video = new Video();
        video.setTitle("这个是Fallback里面的视频");
        return video;
    }

    @Override
    public int save(Video video) {
        return 0;
    }
}
